import { Module } from "@nestjs/common"
import { AliPayController } from "./aliPay.controller"
import { AliPayService } from "./aliPay.service"
import { AliPayPayment } from "./aliPay.payment"
import { TypeOrmModule } from "@nestjs/typeorm"
import { AliPayEntity } from "./aliPay.entity"
// import { OrderService } from "../order/order.service"
// 调用OrderService中的创建订单方法，需要注入OrderEntity
import { OrderEntity } from "../order/order.entity"
import { AuthorizationEntity } from "../authorization/authorization.entity"

@Module({
  imports: [
    TypeOrmModule.forFeature([AliPayEntity, OrderEntity, AuthorizationEntity])
  ],
  controllers: [AliPayController],
  providers: [AliPayService, AliPayPayment]
})
export class AliPayModule {}
